read -p "输入Flutter版本号: " version
read -p "是否为Snapshot 1:是 0:否: " isSnapshot

if [ $isSnapshot -eq 1 ]
then
  versionName="$version-SNAPSHOT"
else
  versionName=$version
fi
echo "版本为:$versionName"

echo "开始编译flutterModule"
echo "goto .android/flutter"
cd .android/flutter
echo "../gradlew assembleRelease"
../gradlew assembleRelease
echo "goto .android"
cd ..
echo "开始上传aar值maven"
echo "sh upload.sh $versionName"
sh upload.sh $versionName